<template>
  <!-- 证书 -->
  <div class="company-pt">
      <!-- 标题 -->
      <div class="pt-title">
         <span class="title-left">资质证书</span>
      </div>
      <div class="project-process border-bottom">
          <div v-for="(item,index) in certificateData" :key="index">
              <div class="process-p1">  
                <p>
                  <span>{{item.name}}</span>
                  <span class="fenge01"></span>
                  <span>{{item.type}}</span>
                  <span class="circle01"></span>
                  <span class="hidder01"></span>
                </p> 
            </div>
            <div class="process-p4 process-p2">
                     <p>认证情况：<span class="circle04"></span>&nbsp;&nbsp;&nbsp;&nbsp;已认证</p>
                  <!-- <div class="img-box">
                      <div v-for="(img,index) in item.arrAtlas" :key="index" v-preview="img" preview-title-enable="false" preview-nav-enable="false">
                           <img v-bind:data-original="img.replace('_ms.','_mx.')" v-bind:src="img" />
                      </div>
                  </div> -->
            </div>
          </div>
      </div>
  </div>
</template>
<script>
import { GetCertificate } from "@/api/zgz";
export default {
  props: {
    id: Number
  },
  data() {
    return {
      flag: true,
      certificateData: [],
  }
  },
  beforeMount: function() {
    this.$nextTick(function() {
      this._GetCertificate();
    });
  },
  methods: {
    // 获取数据
    _GetCertificate() {
      this.$indicator.open();
      setTimeout(() => {
        GetCertificate(this.id).then(res => {
          if (res.StatusCode === 200) {
            this.certificateData = res.Data;
            this.$indicator.close();
          }
        });
      }, 400);
    }
  },
  created() {
    if (this.pindex == "true") {
      this.flag = false;
      return;
    }
  }
};
</script>

<style lang="scss" scoped>
@import "~@/css/total";

.company-pt {
  padding-bottom: 22px;
  border-bottom: 10px solid #f4f4f4;
  // 标题
  .pt-title {
    height: 58.3px;
    width: 100%;
    padding-left: 12px;
    border-bottom: 1px solid #eeeeee;
    overflow: hidden;

    .title-left {
      line-height: 58.3px;
      font-size: 16px;
      color: #282828;
      font-weight: #282828;
      display: inline-block;
      float: left;
      font-weight: bolder;
    }
    .title-right {
      display: inline-block;
      float: right;
      line-height: 58.3px;
      margin-right: 12px;
      font-size: 12px;
      color: #999999;

      > span {
        display: block;
        float: left;
      }
      > .icon {
        display: block;
        float: left;
        margin-top: 22px;
      }
    }
  }
  .project-process {
    padding: 22px 12px;
    .process-p1 {
      overflow: hidden;
      padding-bottom: 22px;
      border-left: 1px dashed #d6d6d6;
      > p {
        overflow: hidden;
        margin-left: 12px;
        margin-bottom: 12px;
        color: #282828;

        > span {
          display: block;
          float: left;
          line-height: 19px;
          font-size: 16px;
          color: #282828;
          margin-left: 1px;
        }
        .circle01 {
          display: block;
          width: 12px;
          height: 12px;
          border-radius: 50%;
          border: 1px solid #3887fe;
          margin-top: 3px;
          margin-right: 8.3px;
          background: white;
          position: absolute;
          left: 5.01px;
          margin-top: 2px;
        }
        .fenge01 {
          width: 0px;
          height: 11.3px;
          border: 1px solid #7d8086;
          margin-top: 3.485px;
          margin-left: 14.6px;
          margin-right: 14.6px;
        }
        .hidder01 {
          display: block;
          width: 2px;
          height: 2px;
          background: white;
          position: absolute;
          left: 11.01px;
        }
      }
    }

    // 项目图片
    .process-p4 {
      font-size: 14px;
      padding-bottom: 12px;
      border-left: 1px dashed #d6d6d6;
      overflow: hidden;
      > p {
        color: #999999;
        margin-bottom: 13px;
        margin-left: 12px;
      }
      .hidder {
        width: 2px;
        height: 28px;
        background: white;
        display: block;
        position: absolute;
        left: 12px;
        margin-top: 55px;
      }
      > :first-child {
        margin-left: 12px;
        color: #282828;
        margin-bottom: 13px;
        .circle04 {
          display: block;
          width: 8.3px;
          height: 8.3px;
          border-radius: 50%;
          border: 1px solid #d6d6d6;
          margin-top: 3px;
          margin-right: 8.3px;
          background: #d6d6d6;
          position: absolute;
          left: 7.85px;
          margin-top: -16px;
        }
      }
      .img-box {
        margin-left: 12px;
        > div {
          display: block;
          width: 106px;
          height: 70.6px;
          float: left;
          margin-right: 12px;
          > img {
           @include img-auto;
          }
        }
      }
    }
    // 展开
    .detail-p2 {
      margin-top: 21px;

      color: #999999;
      overflow: hidden;
      > span {
        display: block;
        float: left;
        margin-left: 172.65px;
        font-size: 14px;
      }
      > .icon {
        display: block;
        float: left;
        margin-left: 9px;
        margin-top: 3px;
      }
    }
  }
}
.process-p2 {
  padding-bottom: 23px !important;
}
</style>
